<template>
    <div class="suspended" v-if="suspended && suspended.image && suspended.url">
        <img class="suspended-img"  @click="toDiscountCoupon" :src="systemImgServerCommon(suspended.image)" alt="">
    </div>
</template>

<script>
    export default {
        name: "Suspended",
        props:{
            isLogin:Boolean,
            isThirdLogin:Boolean,
            suspended:Object,
        },
        data(){
            return{
            }
        },
        methods:{
            toDiscountCoupon(){
                window.location.href = this.suspended.url
            }
        }
    }
</script>

<style scoped>
    .suspended-img{
        position: fixed;
        right: 0;
        top: 45%;
        width: .8rem;
        z-index: 1030;
    }
</style>